<div class="container-fluid">
    <div class="row">
        <div class="col-md-12">
            <label class="btn btn-success mb-0">
                <input type="file" class="d-none" id="txtFile" /> 选择（拖拽）文件
            </label>
            <label id="labSize" class="ml-3"></label>
        </div>
        <div class="col-md-12 my-2">
            <textarea class="form-control min300" id="txtBase64"></textarea>
        </div>
        <div class="col-md-12 mb-2">
            <button class="btn btn-success" id="btnBase64ToFile">Base64转文件</button>
            <div id="viewBase64" class="mt-3"></div>
        </div>
    </div>
</div>

<script src="/js/filetobase64.js" asp-append-version="true"></script>